package org.jiuling.aliyun.sms.convert;

import org.jiuling.aliyun.sms.model.AddSmsSignResponseModel;

/**
 * 添加短信模板响应转换
 * @author 紫灵
 * @date 2023年02月16日 22时13分02秒
 */
public class AddSmsSignResponseConvert {

    /** 私有构造方法，禁止创建对象 */
    private AddSmsSignResponseConvert() {}

    /**
     * 内容转模型
     * @param addSmsSignResponseBody 添加短信签名响应内容
     * @return 添加短信签名响应模型
     */
    public static AddSmsSignResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.AddSmsSignResponseBody addSmsSignResponseBody){
        AddSmsSignResponseModel addSmsSignResponseModel = new AddSmsSignResponseModel();
        addSmsSignResponseModel.setSignName(addSmsSignResponseBody.getSignName());
        addSmsSignResponseModel.setCode(addSmsSignResponseBody.getCode());
        addSmsSignResponseModel.setMessage(addSmsSignResponseBody.getMessage());
        addSmsSignResponseModel.setRequestId(addSmsSignResponseBody.getRequestId());
        return addSmsSignResponseModel;
    }

    /**
     * 内容转模型
     * @param addSmsSignResponseBody 添加短信签名响应内容
     * @return 添加短信签名响应模型
     */
    public static AddSmsSignResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.AddSmsSignResponseBody addSmsSignResponseBody){
        AddSmsSignResponseModel addSmsSignResponseModel = new AddSmsSignResponseModel();
        addSmsSignResponseModel.setSignName(addSmsSignResponseBody.getSignName());
        addSmsSignResponseModel.setCode(addSmsSignResponseBody.getCode());
        addSmsSignResponseModel.setMessage(addSmsSignResponseBody.getMessage());
        addSmsSignResponseModel.setRequestId(addSmsSignResponseBody.getRequestId());
        return addSmsSignResponseModel;
    }

}

